{loop $list $item}

<li>
    <div class="ui-grid-b roomlist" data-roomid="203806" data-index="0">
        <div class="ui-block-a room_img_a" id="piclist_{$item['id']}">
            <a href="{php echo tomedia($item['thumb'])}" rel="external">
                <img class="roompic" id="roomImgList1{$item['id']}" index="0" des="{$item['title']}" title="{$item['title']}" src="{php echo tomedia($item['thumb'])}" style="width:67px;height:50px;">
            </a>
            {loop $item['thumbs'] $thumb_row}
            <a href="{php echo tomedia($thumb_row)}" rel="external" style="display: none;">
                <img id="roomImgList2{$item['id']}" index="0" des="{$item['title']}" alt="{$item['title']}" src="{php echo tomedia($thumb_row)}">
            </a>
            {/loop}
        </div>

        <script>
            $(function () {
                $("#piclist_{$item['id']} a").photoSwipe();
            });
        </script>

        <div class="ui-block-b" onclick="show_room_device('{$item['hotelid']}','{$item['id']}','{$item['has']}','{$item['price']}','{$item['total_price']}')">
            <span data-paytype="1" class="bold">{$item['title']}</span><br>
            <span class="txt_gray">
                {if $item['breakfast'] == 0}
                无早
                {else if $item['breakfast'] == 1}
                单早
                {else if $item['breakfast'] == 2}
                双早
                {/if}
                {if $item['bed_show'] == 1}
                {$item['bed']}
                {/if}
            </span><br>
            {if !empty($item['sales'])}
            <div class="hotelicon hotel_cu">促</div>
            {/if}
        </div>

        <div class="ui-block-c" data-fan="1" data-cny="RMB">
            <span class="size12" style="text-decoration:line-through; padding-right:5px; color:#666666">
            ¥{$item['oprice']} 
            </span><br/>
            <dfn>¥</dfn>
            <strong class="price size16">
            {$item['price']}
            </strong>
            {if $item['avg']}均价{/if}
            {if $item['has'] == 0}
            <p class="room_btn" style='text-align:right;'>
                <input value="满房" class="ui-btn-order bookBtn" type="button" style="width: 60px;-webkit-appearance: none;border-radius:0px;background:#ccc;color:#fff;">
            </p>
            {else}
            <p class="room_btn" style='text-align:right;'>
                {if ($this->_set_info['ordertype'] == 1)}
                <input value="在线预订" class="ui-btn-order bookBtn" type="button"  style=" margin-bottom: 3px;width: 60px;-webkit-appearance: none;border-radius:0px;"
                       onclick="location.href='{php echo $this->createMobileUrl('order', array('hid' => $hid, 'id' => $item['id'], 'price' => $item['price'], 'total_price' => $item['total_price']))}'" >
                {/if}
                <input value="电话预订" class="ui-btn-order bookBtn" onclick="location.href='tel:{$tel}'" type="button" style="width: 60px;-webkit-appearance: none;border-radius:0px;">
            </p>
            {/if}

        </div>
    </div>
</li>

{/loop}
